Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: throw an error if incorrect ledger is used #374

Conversation

rootulp
Copy link
Collaborator

@rootulp rootulp commented Mar 7, 2024

Motivated by this Slack thread. This PR is similar to cosmos#19691

@rootulp rootulp self-assigned this Mar 7, 2024
@codecov-commenter
Copy link

codecov-commenter commented Mar 11, 2024

Codecov Report

Attention: Patch coverage is 66.66667% with 3 lines in your changes are missing coverage. Please review.

Project coverage is 64.31%. Comparing base (2a2347c) to head (de7494d).

Additional details and impacted files

Impacted file tree graph

@@                     Coverage Diff                      @@
##           release/v0.46.x-celestia     #374      +/-   ##
============================================================
- Coverage                     64.33%   64.31%   -0.02%     
============================================================
  Files                           761      761              
  Lines                         76378    76386       +8     
============================================================
- Hits                          49139    49130       -9     
- Misses                        24463    24481      +18     
+ Partials                       2776     2775       -1     
Files Coverage Δ
crypto/keyring/keyring.go 63.03% <66.66%> (-0.01%) ⬇️

... and 3 files with indirect coverage changes

Run it with `go test ./... -tags "cgo,ledger,test_ledger_mock,norace"
-run "TestSignWithLedger"`
@rootulp
Copy link
Collaborator Author

rootulp commented Mar 11, 2024

Run unit tests via:

go test ./... -tags "cgo,ledger,test_ledger_mock,norace" -run "TestSignWithLedger"

Add this to your VSCode workspace settings to get rid of gopls errors:

    "go.buildTags": "cgo,ledger,test_ledger_mock,norace",

@rootulp rootulp marked this pull request as ready for review March 11, 2024 20:14
@rootulp rootulp requested a review from cmwaters March 11, 2024 20:14
@cmwaters cmwaters merged commit 8b5e30b into celestiaorg:release/v0.46.x-celestia Mar 13, 2024
32 checks passed
@rootulp rootulp changed the title feat: throw an error if incorrect ledger is used fix: throw an error if incorrect ledger is used Mar 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants